<template>
  <div>
    <!-- 底部导航 -->
    <div class="bottomNav">
      <div class="navs">
        <router-link tag="div" to="/home/" class="item">
          <i class="iconfont icon-shouye"></i>
          <span>首页</span>
        </router-link>
        <!-- <router-link tag="div" to="/classroom" class="item">
          <i class="iconfont icon-kongzhongketangnormal"></i>
          <span>课堂</span>
        </router-link>
        <router-link tag="div" to="/supermarket" class="item">
          <i class="iconfont icon-a-shangpinbaobao"></i>
          <span>商城</span>
        </router-link> -->
        <router-link tag="div" to="/collection" class="item">
          <i class="iconfont icon-shoucang"></i>
          <span>收藏</span>
        </router-link>
        <router-link tag="div" to="/info" class="item">
          <i class="iconfont icon-my"></i>
          <span>我的</span>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less">
.bottomNav {
  width: 100%;
  height: 55px;
  background-color: #fff;
  position: fixed;
  bottom: 0;
  z-index: 99;
  .navs {
    height: 100%;
    display: flex;
    .item {
      flex: 20%;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      color: #737373;
      i {
        font-size: 26px;
        position: relative;
      }
      &.router-link-active i {
        font-weight: bold;
        color: #3d3d3d;
      }
      &.router-link-active i::after {
        position: absolute;
        top: 0px;
        left: 12px;
        content: "";
        width: 10px;
        height: 10px;
        border: 1px solid #fec836;
        border-radius: 50%;
        background-color: #fec836;
        opacity: 0.6;
      }
      span {
        font-size: 12px;
      }
      &.router-link-active span {
        font-weight: bold;
        color: #181818;
      }
    }
  }
}
</style>
